<%-- 
    Document   : md_cable
    Created on : 2009-6-12, 18:40:55
    Author     : Administrator
--%>

<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="btsm.bean.page,java.sql.*"%>
<%!ResultSet rs;%>
<script language="javascript" src="jscheck.js">
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
    <TITLE>btsm</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <LINK href="Admin_Style.css" type=text/css rel=stylesheet>
    <script>
<%
        page mypage = new page("users", "");
%>
    </script>


</HEAD>

<BODY leftMargin="2" topMargin="0" marginheight="0" marginwidth="0" style="overflow:hidden">
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
</script>
<SCRIPT>
    function tjsj(x){
        document.hj_myform.snid.value=x;
        document.hj_myform.seraction.value="serdel";
        if(confirm('确认要删除用户名为'+x+'的记录吗？')){
        	hj_myform.submit();
   		}
    }

    function tjsjx(x){
        document.hj_myform.snid.value=x;
        document.hj_myform.seraction.value="sermodp";
        hj_myform.submit();
    }

</SCRIPT>

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>

<!--*********搜索工具条开始*****************-->		

            <TR class=tdbg onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'" align=middle>
                <TD width="1157" colspan="13">
                    <p>查  询： <input type="text" name="hj_text_sear" size="20" style="width: 159; height: 20" class=text2d onBlur="checkQuote(this.value,this)">&nbsp;&nbsp;&nbsp;
                        <input type="button" value="搜索" name="hj_sub" style="width: 40; height: 20" class=tx_button onClick="seabutton(Jzselect,Jzselect2,hj_text_sear)" onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                    </p>
                </TD>
            </TR>

<!--*********搜索工具条结束*****************-->	

<TR>
<TD>
    <TABLE class=border cellSpacing=1 cellPadding=2 width="100%" align=center border=0>
        <FORM name="hj_myform" action="ser_users" method="post">
            <TBODY id=Tabs>
            <!--光缆管理列表表头开始-->
            <TR class="title" align="center" height="2l2">
                <TD>用户名</TD>
                <TD>权限</TD>
                <TD>皮肤</TD>
                <TD>真实姓名</TD>
                <TD>联系电话</TD>
                <TD>身份证号码</TD>				
                <TD>家庭住址</TD>
                <TD>禁止登录</TD>
                <TD colspan="2">操作</TD>
            </TR>

            <!--光缆管理列表列表表头结束-->
  <!--基站地理环境管理记录开始-->
<%

        if (session.getAttribute("parax") == null) {
            rs = mypage.myUsersQuery(request, response, 0, 10);
        } else {
            rs = mypage.myQuery(request, response, 1, 10);
        }

        while (rs.next()) {
            %>

            <TR class=tdbg onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'" align=middle>

                <TD><%=rs.getString(1)%></TD>
                <TD><%=rs.getString(3)%></TD>
                <TD><%=rs.getString(4)%></TD>
                <TD><%=rs.getString(5)%></TD>
                <TD><%=rs.getString(6)%></TD>
                <TD><%=rs.getString(7)%></TD>
                <TD><%=rs.getString(8)%></TD>
                <TD><%=rs.getString(9)%></TD>				
                <TD align="center"><a href="javascript:tjsjx('<%=rs.getString(1)%>')">修改</a></TD>
                <TD align="center"><a href="javascript:tjsj('<%=rs.getString(1)%>')">删除</a>
                </TD>

            </TR>

            <!--基站地理环境管理记录结束-->
 <%
        }
        String footer = mypage.PageFooter();
            %>

        <% 
			rs.close();
			mypage.dbConClose();
		%>
            <input name="snid" type="hidden" id="snid">

            <TR class=tdbg onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'" align=middle>
            <TD width="1157" colspan="13">
            <p align="left">
                                    <%
            String jspName = request.getRequestURI();
            jspName = jspName.substring(jspName.lastIndexOf("/") + 1);
                                    %>
            <input type="hidden" name="filesnames" value=<%=jspName%>>
		    <input type="hidden" name="seraction" value="sermodp">
        </FORM>

        </p>

    </TD>
    </TR>
    <TR class=tdbg onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'" align=middle>
        <TD width="1157" colspan="13">
            <p align="center">
            <div class="article-bottom">
                <div class="pages">
                    <%out.println(footer);%>
                </div>
            </div><!--article-bottom -->

          <!--content -->
            <!--mainWrapper -->
            <div id="footer">
                <div id="innerFooter"></div>
            </div>

        </TD>
    </TR>

    </TBODY>

</TABLE>
</TD></TR></TBODY></TABLE>
</BODY></HTML>